/*
 *    Copyright (c) 2018-2025, nart All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: nart
 */

package com.nai365.nart.operation.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author linco
 * @date 2022-07-22 13:29:36
 */
@Data
@TableName("opt_recovery_record")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "")
public class RecoveryRecord extends Model<RecoveryRecord> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "主键")
	private Long id;

	/**
	 * 用户Id
	 */
	@ApiModelProperty(value = "用户Id")
	private Long userId;

	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	/**
	 * 回收份数
	 */
	@ApiModelProperty(value = "回收份数")
	private Integer copies;

	/**
	 * spu id
	 */
	@ApiModelProperty(value = "spu id")
	private Long spuId;

	/**
	 * spu名称
	 */
	@ApiModelProperty(value = "spu名称")
	private String spuName;

	/**
	 * spu token
	 */
	@ApiModelProperty(value = "spu token")
	private String spuToken;

	/**
	 * spu图片路径
	 */
	@ApiModelProperty(value = "spu图片路径")
	private String spuImage;

	/**
	 * spu交易hash
	 */
	@ApiModelProperty(value = "spu交易hash")
	private String spuTxHash;

	/**
	 * 回收状态[0:正在回收上链中,1:已完成]
	 */
	@ApiModelProperty(value = "回收状态[0:正在回收上链中,1:已完成]")
	private Integer status;

	/**
	 * 发行时间
	 */
	@ApiModelProperty(value = "发行时间")
	private LocalDateTime spuPublishTime;

	/**
	 * 发售时间
	 */
	@ApiModelProperty(value = "发售时间")
	private LocalDateTime spuPublishSellTime;

	/**
	 * 发售价格
	 */
	@ApiModelProperty(value = "发售价格")
	private BigDecimal spuPublishSellPrice;

	/**
	 * 钱包流水
	 */
	@ApiModelProperty(value = "钱包流水")
	private Long walletSerial;

	/**
	 * 回收价格
	 */
	@ApiModelProperty(value = "回收金额")
	private BigDecimal recoveryAmount;


	@TableField(exist = false)
	@ApiModelProperty(value = "详情列表")
	private List<RecoveryDetail> detailList;

}
